//
// CIGSurfaceLightBuild.java
// Copyright (C) 2010  "Naush" <naush _ hotmail _ fr>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>./* ----------------------------------------------------------------------------







package org.ryzom.nel.threed;

import org.ryzom.nel.misc.CVector;

public class CIGSurfaceLightBuild {
  private long swigCPtr;
  protected boolean swigCMemOwn;

  public CIGSurfaceLightBuild(long cPtr, boolean cMemoryOwn) {
    swigCMemOwn = cMemoryOwn;
    swigCPtr = cPtr;
  }

  public static long getCPtr(CIGSurfaceLightBuild obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if (swigCPtr != 0) {
      if (swigCMemOwn) {
        swigCMemOwn = false;
        nel3dJNI.delete_CIGSurfaceLightBuild(swigCPtr);
      }
      swigCPtr = 0;
    }
  }

  public void setCellSize(float value) {
    nel3dJNI.CIGSurfaceLightBuild_CellSize_set(swigCPtr, this, value);
  }

  public float getCellSize() {
    return nel3dJNI.CIGSurfaceLightBuild_CellSize_get(swigCPtr, this);
  }

  public void setRetrieverGridMap(SWIGTYPE_p_std__mapT_unsigned_int_NL3D__CRetrieverLightGrid_t value) {
    nel3dJNI.CIGSurfaceLightBuild_RetrieverGridMap_set(swigCPtr, this, SWIGTYPE_p_std__mapT_unsigned_int_NL3D__CRetrieverLightGrid_t.getCPtr(value));
  }

  public SWIGTYPE_p_std__mapT_unsigned_int_NL3D__CRetrieverLightGrid_t getRetrieverGridMap() {
    long cPtr = nel3dJNI.CIGSurfaceLightBuild_RetrieverGridMap_get(swigCPtr, this);
    return (cPtr == 0) ? null : new SWIGTYPE_p_std__mapT_unsigned_int_NL3D__CRetrieverLightGrid_t(cPtr, false);
  }

  public void buildSunDebugMesh(SWIGTYPE_p_NL3D__CMesh__CMeshBuild meshBuild, SWIGTYPE_p_NL3D__CMeshBase__CMeshBaseBuild meshBaseBuild, CVector deltaPos) {
    nel3dJNI.CIGSurfaceLightBuild_buildSunDebugMesh__SWIG_0(swigCPtr, this, SWIGTYPE_p_NL3D__CMesh__CMeshBuild.getCPtr(meshBuild), SWIGTYPE_p_NL3D__CMeshBase__CMeshBaseBuild.getCPtr(meshBaseBuild), CVector.getCPtr(deltaPos), deltaPos);
  }

  public void buildSunDebugMesh(SWIGTYPE_p_NL3D__CMesh__CMeshBuild meshBuild, SWIGTYPE_p_NL3D__CMeshBase__CMeshBaseBuild meshBaseBuild) {
    nel3dJNI.CIGSurfaceLightBuild_buildSunDebugMesh__SWIG_1(swigCPtr, this, SWIGTYPE_p_NL3D__CMesh__CMeshBuild.getCPtr(meshBuild), SWIGTYPE_p_NL3D__CMeshBase__CMeshBaseBuild.getCPtr(meshBaseBuild));
  }

  public void buildPLDebugMesh(SWIGTYPE_p_NL3D__CMesh__CMeshBuild meshBuild, SWIGTYPE_p_NL3D__CMeshBase__CMeshBaseBuild meshBaseBuild, CVector deltaPos, CInstanceGroup igOut) {
    nel3dJNI.CIGSurfaceLightBuild_buildPLDebugMesh(swigCPtr, this, SWIGTYPE_p_NL3D__CMesh__CMeshBuild.getCPtr(meshBuild), SWIGTYPE_p_NL3D__CMeshBase__CMeshBaseBuild.getCPtr(meshBaseBuild), CVector.getCPtr(deltaPos), deltaPos, CInstanceGroup.getCPtr(igOut), igOut);
  }

  public CIGSurfaceLightBuild() {
    this(nel3dJNI.new_CIGSurfaceLightBuild(), true);
  }

  public final static int MaxOverSamples = nel3dJNI.CIGSurfaceLightBuild_MaxOverSamples_get();

}
